<%--
  Created by IntelliJ IDEA.
  User: ht
  Date: 2023/3/18
  Time: 22:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>系统主页</title>
</head>
<body>
<c:if test="${USER_SESSION.username==null}">
  暂未登录，请先<a href="${pageContext.request.contextPath }/loginview">登录</a>
</c:if>
<c:if test="${USER_SESSION.username!=null}">
  已登录成功，当前用户：${USER_SESSION.username} <br>
  <a href="${pageContext.request.contextPath }/logout">点击退出</a>
</c:if>
</body>
</html>
